package com.friend.chat.utils

/**
 * @des chatId生成规则 小的在前 大的在后
 * @author batie fancy
 * @date 2023/1/11
 */
fun getRoomId(userId:String, toUid:String):String{
    val intUser = userId.toInt()
    val intTo = toUid.toInt()
    if (intUser<intTo){
        return "$userId&$toUid"
    }else{
        return "$toUid&$userId"
    }
}